package com.lsw.joy.login.service.impl;

import com.lsw.joy.login.mapper.RegisterMapper;
import com.lsw.joy.login.service.RegisterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Hasee
 * @date 2021/10/14
 */
@Service
public class RegisterServiceImpl implements RegisterService {

    @Resource
    private RegisterMapper registerMapper;
    @Override
    public Integer selectCountByName(String userName) {
        return registerMapper.selectCountByName(userName);
    }

    @Override
    public void saveUserInformation(String userName, String newPass) {
        registerMapper.insertUser(userName,newPass);
    }
}
